package j08zhou;

public class J2xiaofang {
    public static void main(String[] args) {
        //2.5
        // 5 10 15.. -6
        // 100
        double sum = 0;
        //
        int day = 0;
        while (true){
            day++;
            sum += 2.5;
            // 先看钱够不够，
            if(sum>=100){
                System.out.println("day = " + day+",sum="+sum);
                break;
            }
            if(day%5==0){
                sum-=6;
            }
            System.out.println("day = " + day+",sum="+sum);
        }

    }
}
